home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
mac
/
files
/
misc
/
monoband.bqs
/
MONOBAND.BAS
Wrap
BASIC Source File
|
1996-06-25
|
9KB
|
176 lines
10 CLS
20 LOCATE 4,11:PRINT CHR$(201);:FOR I = 1 TO 58:PRINT CHR$(205);:NEXT I:PRINT CHR$(187)
30 LOCATE 5,11:PRINT CHR$(186);:LOCATE 5,70:PRINT CHR$(186)
40 LOCATE 6,11:PRINT CHR$(186);:LOCATE 6,70:PRINT CHR$(186)
50 LOCATE 7,11:PRINT CHR$(186);:LOCATE 7,70:PRINT CHR$(186)
60 LOCATE 8,11:PRINT CHR$(186);:LOCATE 8,70:PRINT CHR$(186)
70 LOCATE 9,11:PRINT CHR$(186);:LOCATE 9,70:PRINT CHR$(186)
80 LOCATE 10,11:PRINT CHR$(186);:LOCATE 10,70:PRINT CHR$(186)
90 LOCATE 11,11:PRINT CHR$(186);:LOCATE 11,70:PRINT CHR$(186)
100 LOCATE 12,11:PRINT CHR$(186);:LOCATE 12,70:PRINT CHR$(186)
110 LOCATE 13,11:PRINT CHR$(186);:LOCATE 13,70:PRINT CHR$(186)
120 LOCATE 14,11:PRINT CHR$(186);:LOCATE 14,70:PRINT CHR$(186)
130 LOCATE 15,11:PRINT CHR$(186);:LOCATE 15,70:PRINT CHR$(186)
140 LOCATE 16,11:PRINT CHR$(186);:LOCATE 16,70:PRINT CHR$(186)
150 LOCATE 17,11:PRINT CHR$(186);:LOCATE 17,70:PRINT CHR$(186)
160 LOCATE 18,11:PRINT CHR$(186);:LOCATE 18,70:PRINT CHR$(186)
170 LOCATE 19,11:PRINT CHR$(200);:FOR I = 1 TO 58:PRINT CHR$(205);:NEXT I:PRINT CHR$(188)
180 LOCATE 7,23:PRINT "Originally Written for the Atari"
190 LOCATE 8,36:PRINT "by"
200 LOCATE 18,17:PRINT "Compiled using the Microsoft Basic Compiler V2.0"
210 LOCATE 5,28:PRINT "MONOBAND ANTENNA DESIGN"
220 LOCATE 9,27:PRINT "Alan Hoffmaster WA3EKL"
230 LOCATE 14,19:PRINT "With a lot of help from Alan's Wife, Susan"
240 LOCATE 13,28:PRINT "Edward Mester WA3HQX"
250 LOCATE 12,36:PRINT "by"
260 LOCATE 11,23:PRINT "Converted to the IBM-PC format"
270 LOCATE 16,22:PRINT "THIS SOFTWARE IS IN THE PUBLIC DOMAIN"
280 FOR I = 1 TO 15000:NEXT I
290 CLS:LOCATE 10,27:PRINT"Mono Band Antenna Design":FOR I=1 TO 4000:NEXT I
300 DIM C$(3),B$(4)
310 CLS:LOCATE 10,25:INPUT"Do you wish instructions (Y/N)";C$
320 IF C$="N" OR C$="n" OR C$="NO" OR C$="no" THEN 630
330 CLS:LOCATE 10,1
340 PRINT"This program was written using the formulas published in 1980 Ham Radio";
350 PRINT"magazine and written by W2PV who proved mathematically and experimentally that";
360 PRINT"antenna element resonate frequency length is not a simple calculation";
370 PRINT"especially when tapered elements are involved.":FOR I=1 TO 15000:NEXT I
380 CLS:LOCATE 10,27:PRINT"Mechanical Recomendations":FOR I=1 TO 4000:NEXT I
390 PRINT"20 Meter boom should be 3 or 4 inch diameter aluminum irrigation pipe depending on length."
400 PRINT"Elements should be tapered segments from 1 1/4 inches to 1/2 inch diameters of 6061 R6 tubing or equivalent."
410 DIM I$
420 LOCATE 16,22:PRINT"To continue instructions press RETURN";:INPUT I$
430 CLS:LOCATE 10,1:PRINT"10-15 Meter booms should be made of 2 inch aluminum irrigation pipe."
440 PRINT"Elements should be tapered from 7/8 inches to 5/8 inch diameters of 6061 T6 seamless tubing or equivalent.":FOR I=1 TO 15000:NEXT I
450 CLS:LOCATE 10,27:PRINT"Electrical recomendations":FOR I=1 TO 4000:NEXT I
460 CLS:LOCATE 10,1:PRINT"For maximum front to back ratio, use a 1/4 wavelength boom on a 3 element beam."
470 PRINT"Use a 3/4 wavelength boom on a 4,5 or 6 element beam.
480 PRINT"Equally space all elements along the boom reguardless of length."
490 PRINT"For a good 2 element beam, use a boom length of .150 wavelength."
500 PRINT"For a good 3 element beam, use a boom length of .300 wavelength."
510 LOCATE 16,22:PRINT"To continue press RETURN";:INPUT I$
520 CLS:LOCATE 10,1:PRINT"IMPORTANT-All total length dimensions will be element half lengths,";
530 PRINT"meaning the length of the element measured from the boom out to the tip of the";
540 PRINT"measured from the boom out to the tip of the element. Enter element segment";
550 PRINT"will be assembled, starting with the largest diameter segment (which crosses";
560 PRINT"over the boom) to the smallest diameter segment at the element tip. The"
570 PRINT"object is to adjust the original segment lengths so that the total equivalent"
580 PRINT"length is equal to or very close to the normalized length for the particular"
590 PRINT"element you are working on.":LOCATE 19,22:PRINT"To continue press RETURN";:INPUT I$
600 CLS:LOCATE 10,1:PRINT"When to computer asks you for information, enter in the information then press"
610 PRINT"return. Nothing will happen until you press return. If nothing happens"
620 PRINT"immediately, wait. The computer may be thinking.":LOCATE 14,22:PRINT"To continue press RETURN";:INPUT I$
630 CLS:LOCATE 5,1:PRINT"Enter central design frequency in MHZ";:INPUT CDF
640 RL=11811.024#/CDF:' RESONATE LENGTH IN INCHES
650 LOCATE 7,1:PRINT"Enter number of antenna elements 2,3,4,5 or 6";:INPUT P
660 IF P<2 OR P>6 THEN 650
670 LOCATE 9,1:PRINT"Enter boom diameter";:INPUT BD
680 BC=(BD/2)*.0625:REM BOOM CORRECTION
690 LOCATE 11,1:PRINT"Enter number of antenna segments";:INPUT N
700 X=0:DIM L((N-1)),D((N-1)),F((N-1))
710 FOR E=0 TO (N-1)
720 L(E)=0:D(E)=0:F(E)=0
730 NEXT E:REM clear arrays
740 PRINT:PRINT"Enter (in inches) length of segment";:INPUT A
750 L(X)=A
760 PRINT:PRINT"Enter (in inches) diameter of segment";:INPUT B
770 D(X)=B
780 GOSUB 1720
790 X=X+1:' STEPPING DATA INTO L ARRAY
800 IF X=N THEN 820
810 GOTO 740:' ENTERING IN SUCCESSIVE LENGTHS AND DIAMETERS
820 FOR EE=0 TO (N-1)
830 TD=TD+D(EE)
840 NEXT EE
850 AD=TD/N
860 GOSUB 1340
870 GOSUB 1660
880 T=0:G=0:' CLEAR TOTAL
890 FOR Y=0 TO (N-1)
900 T=T+L(Y):' ADD SEGMENT LENGTHS
910 PRINT L(Y)" inches long";D(Y);" inches dia."
920 NEXT Y
930 PRINT:PRINT T;" inches=total original length"
940 O1=0:O2=0:W=0
950 RO1=AD/(2*RL):' =RADIUS OF CENTER SEGMENT
960 D1=D(G)
970 RO2=D1/(2*RL):' =RADIUS OF SUCCESSIVE SEGMENTS
980 G=G+1:' STEPPING THRU SEGMENT DIAMETERS
990 K1=1/RO1
1000 K2=1/RO2
1010 M=((43.03*(LOG(K2)/LOG(10))-32))/((43.03*(LOG(K1)/LOG(10))-32))
1020 O2=(L(W)*1.57079632#)/T+O1:' O2 IN RADIANS
1030 FO=(SIN(2*O2)-SIN(2*O1))/((2*O2)-(2*O1))
1040 O1=O2
1050 SA=((M+1/M)/2+(M-1/M)*FO/2)*L(W)
1060 F(W)=SA:' PLACE EQUIVALENT LENGTHS INTO F ARRAY
1070 W=W+1:' STEPPING THRU F ARRAY
1080 IF W=N THEN 1100
1090 GOTO 950:' LOOP TO CALCULATE EACH SEGMENT LENGTH
1100 S=0:' CLEAR EQUIVALENT LENGTH TOTAL
1110 FOR Z=0 TO (N-1)
1120 S=S+F(Z):' ADD EQUIVALENT LENGTHS IN F ARRAY
1130 NEXT Z
1140 PRINT S;" inches=total equivalent length"
1150 PRINT:PRINT"Do you wish to change a segment length? (Y/N)";:INPUT B$
1160 IF B$="N" OR B$="n" THEN 1280
1170 PRINT"Enter number of segments you wish to change, counting from the boom out.";:INPUT V
1180 IF V<1 THEN 1170
1190 IF V>N THEN 1170
1200 PRINT"Enter new segment length (in inches)";:INPUT U
1210 L(V-1)=U
1220 GOSUB 1660
1230 GOTO 880
1240 PRINT P;" Element beam at ";CDF;" MHZ"
1250 FOR TT=0 TO (N-1)
1260 PRINT L(TT);" inches long",D(TT);" inches dia."
1270 NEXT TT
1280 PRINT:PRINT"Write down element lengths appearing on the screen and add the following correc-";
1290 PRINT"tions to the outer most element for final length."
1300 PRINT:PRINT"on 20 Meters add ";BC+.66;" inches"
1310 PRINT"on 15 Meters add ";BC+.44;" inches"
1320 PRINT"on 10 Meters add ";BC+.24;" inches"
1330 END
1340 DIM A(13),B(13)
1350 FOR H=0 TO 13
1360 A(H)=0:B(H)=0
1370 NEXT H:' CLEAR A AND B ARRAYS
1380 A(0)=.49366:A(1)=.49801:A(2)=.49185:A(3)=.49994:A(4)=.49528:A(5)=.4705
1390 A(6)=.48963:A(7)=.479:A(8)=.4804:A(9)=.48028:A(10)=.469:A(11)=.46319
1400 A(12)=.45232:A(13)=.44811
1410 DIM R(6),DE(6),DR(6)
1420 FOR Q=0 TO 6
1430 R(Q)=0:DE(Q)=0:DR(Q)=0
1440 NEXT Q:' CLEAR R,DE,DR
1450 IF AD=.875 THEN 1600
1460 RA1=.875/(2*RL)
1470 RA2=AD/(2*RL)
1480 KK1=1/RA1
1490 KK2=1/RA2
1500 FOR J=0 TO 13
1510 FR1=(1-((10.7575*(LOG(KK1)/LOG(10)))-8)^-1)/(2*A(J))
1520 XX1=((215.15*(LOG(KK1)/LOG(10)))-160)*((1/FR1)-FR1)
1530 AA=XX1/((215.15*(LOG(KK2)/LOG(10)))-160)
1540 FR2=(-AA+((AA^2)+4)^.5)/2
1550 B(J)=(1-((10.7575*(LOG(KK2)/LOG(10)))-8)^-1)/(2*FR2)
1560 NEXT J
1570 R(2)=B(0):R(3)=B(1):R(4)=B(2):R(5)=B(3):R(6)=B(4):DE(2)=B(5):DE(3)=B(6)
1580 DE(4)=B(7):DE(5)=B(8):DE(6)=B(9):DR(3)=B(10):DR(4)=B(11):DR(5)=B(12):DR(6)=B(13)
1590 GOTO 1620
1600 R(2)=A(0):R(3)=A(1):R(4)=A(2):R(5)=A(3):R(6)=A(4):DE(2)=A(5):DE(3)=A(6):DE(4)=A(7):DE(5)=A(8):DE(6)=A(9)
1610 DR(3)=A(10):DR(4)=A(11):DR(5)=A(12):DR(6)=A(13)
1620 RST=(RL*R(P))/2:' REFLECTOR NORMALIZED 1/2 LENGTH
1630 DEST=(RL*DE(P))/2:' DRIVEN ELEMENT NORMALIZED 1/2 HALF LENGTH
1640 DRST=(RL*DR(P))/2:' DIRECTORS NORMALIZED 1/2 LENGTH
1650 RETURN
1660 CLS:PRINT P;" Element beam at ";CDF;" MHZ"
1670 PRINT:PRINT RST;" Inches = normalized reflector 1/2 length"
1680 PRINT DEST;" Inches = normalized driven element 1/2 length"
1690 PRINT DRST;" Inches = normalized directors 1/2 length":PRINT
1700 RETURN
1720 PRINT:PRINT P;" Element beam at ";CDF;" MHZ"
1730 FOR AB=0 TO (N-1)
1740 PRINT L(AB);" Inches long",D(AB);" Inches diameter."
1750 NEXT AB
1760 RETURN
at